#include<stdio.h>
int main()
{
	int a[10] = { 1, 0, 4, 8, 12, 65, -76, 100, -45, 123 };
	int k = 0;
	for (int i = 0; i < 10; i++)
	{
		for (int j = i + 1; j < 9; j++)
		{
			if (a[i]>a[j])
			{
				k = a[i];
				a[i] = a[j];
				a[j] = k;

			}
			
		}
		printf("%d\n", a[i]);
		system("pause");
	}
}